package com.ruoyi.cms.controller.website;

import com.ruoyi.cms.domain.CmsDict;
import com.ruoyi.cms.service.ICmsDictService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Tag(name = "CmsSiteController", description = "网站的基本信息管理 for web前端")
@RestController
@RequestMapping("cms/website/sitemap")
public class CmsSiteController extends BaseController {


    @Autowired
    private ICmsDictService cmsDictService;


    @Operation(summary = "查询网站的基本信息")
    @GetMapping("/list")
    public TableDataInfo list() {
        startPage();
        CmsDict cmsDict = new CmsDict();
        cmsDict.setDictType("sitemap");
        List<CmsDict> list = cmsDictService.selectCmsDictList(cmsDict);
        return getDataTable(list);
    }


}
